package com.example.im.entity

import com.example.im.utils.JsonUtils
import java.io.Serializable

class ChatContent : Serializable {

    var body: String? = null
    var type: Int = 0
    var itel: String? = null
    var entireId: Int = 0
    var fileInfo: FileInfo? = null

    fun getChatContent(): ChatContent = this

    override fun toString(): String {
        return JsonUtils.objectToString(this)
    }

    class FileInfo : Serializable{
        var name: String? = null
        var length: Int = 0
        var duration: Int = 0
        var netUrl: String? = null
        var localUrl: String? = null

        fun getFileInfo(): FileInfo = this

        override fun toString(): String {
            return JsonUtils.objectToString(this)
        }
    }
}
